
package com.productmodule.bean;

import com.productmodule.dao.TbProductTypeDAO;

public class TbProduct implements java.io.Serializable {

    private int productId;

    private int productTypeId;
    private TbProductType tbProductType;

    private String productName;

    private String productMemo;

    private int userId;

    private String createTime;
    
    
    private TbProductPrice tbProductPrice;

    public int getProductId(){
        return productId;
    }

    public void setProductId(int productId){
        this.productId = productId;
    }

    public int getProductTypeId(){
        return productTypeId;
    }

    public void setProductTypeId(int productTypeId){
        this.productTypeId = productTypeId;
        this.tbProductType = new TbProductTypeDAO().getTbProductTypeByProductTypeId(productTypeId);
    }

    public TbProductType getTbProductType() {
		return tbProductType;
	}

	public void setTbProductType(TbProductType tbProductType) {
		this.tbProductType = tbProductType;
	}

	public String getProductName(){
        return productName;
    }

    public void setProductName(String productName){
        this.productName = productName;
    }

    public String getProductMemo(){
        return productMemo;
    }

    public void setProductMemo(String productMemo){
        this.productMemo = productMemo;
    }

    public int getUserId(){
        return userId;
    }

    public void setUserId(int userId){
        this.userId = userId;
    }

    public String getCreateTime(){
        return createTime;
    }

    public void setCreateTime(String createTime){
        this.createTime = createTime;
    }


    public TbProduct(){
    }
        public TbProduct(int productTypeId,String productName,String productMemo,int userId){
        this.productTypeId = productTypeId;
        this.productName = productName;
        this.productMemo = productMemo;
        this.userId = userId;
    }
    public TbProduct(int productId,int productTypeId,String productName,String productMemo,int userId){
        this.productId = productId;
        this.productTypeId = productTypeId;
        this.productName = productName;
        this.productMemo = productMemo;
        this.userId = userId;
    }

	public TbProductPrice getTbProductPrice() {
		return tbProductPrice;
	}

	public void setTbProductPrice(TbProductPrice tbProductPrice) {
		this.tbProductPrice = tbProductPrice;
	}
}

